package com.example.demovalue.pk8;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

@Data
//@Configuration(proxyBeanMethods = false)
@ConfigurationProperties
public class CollectionConfig {
    private List<MyServer> servers;
    private Map<String, User> users;
    private String [] names;

    @Override
    public String toString() {
        return "ConllectionConfig{" +
                "server=" + servers +
                ", users=" + users +
                ", names=" + Arrays.toString(names) +
                '}';
    }
}
